#include <stdio.h>
#include <stdlib.h>
#include <string.h>

int main()
{
	char *ptr;
	
	if ( (ptr = (char *)malloc(0)) == NULL)
		puts("Got a null pointer");
	else 
		puts("Got a valid pointer");	// right
		
	ptr = "xiaozhi";
	printf("%s\n", ptr);
}


